<date> : Insert Date

Inserts formatted date information (e.g., 02/24/2000) into the currently active window.

Syntax:

<date>(Format, Separator, DayLZ, MonthLZ, Shift, "SaveToVariable")

Format
The format index (the first format has index 0). 

Separator
Separator character: .,/- etc.

DayLZ
If 1, the day is displayed with leading zero (e.g., 02).  If 0, the day is displayed without leading zero (e.g., 2).

MonthLZ
If 1, the month  is displayed with leading zero (e.g., 09).  If 0, the month is displayed without leading zero (e.g., 9).

Shift
The date shift in days relative to the current date.  0 for no shift (today's date), -1 for date one day back (yesterday), +1 for date one day later (tomorrow), etc.

SaveToVariable
Variable that receives the date.  If this variable name is an empty string, the date is send to active application as a set of keystrokes.

Example:

<#> Run this example in Notepad:
Current date is: <date>(1,"/",1,1,0,"")
Current date is: <date>(10,"/",1,1,0,"")
Yesterday: <date>(1,"/",1,1,-1,"")